<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta name="robots" content="noindex,nofollow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>生成设置</title>
<link rel="stylesheet" type="text/css" href="layui/css/layui.css" />
<link rel="stylesheet" type="text/css" href="css/x.css"/>
<script src="js/common.js" type="text/javascript"></script>
<script src="js/main.js" type="text/javascript"></script>
<script src="layui/layui.js" type="text/javascript"></script>
<script type="text/javascript">
	layui.use('element', function(){
	  var element = layui.element;
	  
	  //一些事件触发
	  element.on('tab(demo)', function(data){
	    
	  });
	});
</script>
</head>
<body>
<!--当前导航-->

<div class="layui-fluid">
  <div class="r_content pd15">
    <div style="overflow-x: auto">
		<div class="layui-tab">
		  <ul class="layui-tab-title">
		    <li class="layui-this">生成视频相关</li>
		    <li>生成其它</li>
		  </ul>
		  <div class="layui-tab-content">
		    <div class="layui-tab-item layui-show">
				<table class="layui-table" lay-skin="nob" style="min-width:900px;">
					<tr>
					  <td><input type="button" value="生成视频首页" class="rb1"  onClick="javascript:window.open('?action=index&by=video','msg');">
					    <input type="button" value="生成地图页" class="rb1"  onClick="javascript:window.open('?action=map&by=video','msg');">
					    <input type="button" value="生成JS调用" class="rb1"  onClick="javascript:window.open('?action=js&by=video','msg');">
					    <input type="button" value="一键生成全站" class="rb1"  onClick="javascript:window.open('?action=site&action3=site&by=video','msg');">
					    <input type="button" value="生成未生成的视频" class="rb1"  onClick="javascript:window.open('?action=allcontent&action2=allcontent&makenoncreate=1','msg');">
					    <input type="button" value="一键生成当天" class="rb1"  onClick="javascript:window.open('?action=day','msg');"></td>
					</tr>
					<tr>
					  <td><form action="?action=channel" method="post" target="msg" id="cform">
						  <select name="channel" id="channel"  style="width:121px">
							<option value="">请选择分类</option>
							<?php makeTypeOption(0,"&nbsp;|&nbsp;");?>
						  </select>
						  <input type="submit"  class="rb1"  value="生成栏目页" >
						  <input type="button"  class="rb1"  value="生成全部栏目页" onClick="javascript:window.open('?action=allchannel','msg');">
						  开始页数：
						  <input type="text" id="startpage" name="startpage" value='1' size="3" maxlength="3"/>
						  结束页数：
						  <input type="text" id="endpage" name="endpage" value='1' size="3" maxlength="6"/>
						  <script type="text/javascript">
						  function submitform()
						  {
							  $('cform').action="?action=lengthchannel"
							  $('cform').submit()
						  }
						</script>
						  <input type="button"  class="rb1"  value="生成部分栏目页" onclick="submitform()">
						</form></td>
					</tr>
					<tr>
					  <td><script type="text/javascript">
							function submitvform()
							{
							$('viewform').action="?action=daysview"
							$('viewform').submit()
							}
							</script>
						<form action="?action=content" method="post" target="msg" id="viewform">
						  <select name="channel" id="channel"  style="width:121px" >
							<option value="">请选择分类</option>
							<?php makeTypeOption(0,"&nbsp;|&nbsp;");?>
						  </select>
						  <input type="submit"  class="rb1"  value="生成内容页" >
						  <input type="button"  class="rb1"  value="生成全部内容页" onClick="javascript:window.open('?action=allcontent&action2=allcontent','msg');">
						  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						  <input type="button" class="rb1" value="生 成" onClick="submitvform()">
						  <select name="days" id="days" >
							<?php for($i=1;$i<4;$i++){
								echo "<option value=\"$i\">$i</option>";
							}?>
						  </select>
						  日内内容页
						</form>
						<br />
						&nbsp;注意：网站在静态模式下，如果<a href="admin_config.php" target="main"><font color="blue">网站配置</font></a>中选择了<font color="red">"生成播放页"</font>，那么生成内容页的同时、将会生成播放页 </td>
					</tr>						  
						  
				</table>
				
				
			</div>
		    <div class="layui-tab-item">
				<table class="layui-table" lay-skin="nob" style="min-width:900px;">
				<tr >
				  <td><form action="?action=topic" method="post" target="msg">
				      <?php echo makeTopicSelect("topic","最近添加的专题","");?>
				      <input type="submit"  class="rb1"  value="生成专题" >
				      <input type="button"  class="rb1"  value="生成全部专题" onClick="javascript:window.open('?action=alltopic','msg');">
					  <input type="button"  class="rb1"  value="生成专题列表" onClick="javascript:window.open('?action=topicindex&page=1','msg');">
				    </form></td>
				</tr>
				<tr>
				  <td><script type="text/javascript">
					  function submitcform()
					  {
						  $('customform').action="?action=allcustom"
						  $('customform').submit()
					  }
					  </script>
					<form action="?action=custom" method="post" target="msg" id="customform">
					  <select name="custom" id="custom" >
						<option value="">请选择自定义模板文件</option>
						<?php
						$templetdird = $cfg_basedir."templets/".$cfg_df_style."/".$cfg_df_html."/";
						$dh = dir($templetdird);
						   while($filename=$dh->read())
						   {
							  if(strpos($filename,"elf_")>0) echo "<option value='$filename'>$filename</option>\r\n";
						   }
						?>
					  </select>
					  <input type="submit"  class="rb1"  value="生成自定义页" >
					  <input type="button"  class="rb1"  value="生成全部自定义页" onClick="submitcform()">
					</form></td>
				</tr>
			</table>
			</div>
		  </div>
		</div>
		<div><iframe style="WIDTH: 100%; HEIGHT: 200px;" name="msg"  frameBorder=0 scrolling=yes></iframe></div>
    </div>
  </div>
</div>

</body>
</html>
